package com.liangwj.springbootweb.repository;

//import com.liangwj.springbootweb.model.jpa_entity.JpaUser;
//import org.springframework.data.jpa.repository.JpaRepository;
//import org.springframework.data.jpa.repository.Query;
//import org.springframework.data.repository.query.Param;

/**
 * TODO:用于spring-data-jpa的repository的接口
 * @author Liangwenjun
 * @date 2018-12-13
 * @version 1.0
 */
//public interface JpaUserRepository extends JpaRepository<JpaUser, Long> {
//
//    JpaUser findByUserName(String username);
//
//    JpaUser findByUserNameAndAge(String username, Integer age);
//
//    @Query("from User u where u.userName =: username")
//    JpaUser findUser(@Param("username") String username);
//
//}
